STEP 4: We need one compound if statement for every combination of choices.

Let's start with the player's choice as "rock" and the computer_choice as "rock".

  • Change both test values in the if statement to "rock".

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)